package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.PushMessage;
import com.ecoolex.ying.space.entity.PushMessageExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PushMessageMapper {
    long countByExample(PushMessageExample example);

    int deleteByExample(PushMessageExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PushMessage record);

    int insertSelective(@Param("record") PushMessage record, @Param("selective") PushMessage.Column ... selective);

    PushMessage selectOneByExample(PushMessageExample example);

    List<PushMessage> selectByExample(PushMessageExample example);

    PushMessage selectByPrimaryKey(Integer id);

    PushMessage selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PushMessage record, @Param("example") PushMessageExample example, @Param("selective") PushMessage.Column ... selective);

    int updateByExample(@Param("record") PushMessage record, @Param("example") PushMessageExample example);

    int updateByPrimaryKeySelective(@Param("record") PushMessage record, @Param("selective") PushMessage.Column ... selective);

    int updateByPrimaryKey(PushMessage record);

    int batchInsert(@Param("list") List<PushMessage> list);

    int batchInsertSelective(@Param("list") List<PushMessage> list, @Param("selective") PushMessage.Column ... selective);

    int logicalDeleteByExample(@Param("example") PushMessageExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}